using UnityEngine;
using System.Collections;

public class pingpong : MonoBehaviour {
	
	public GameObject one;
	public GameObject two;
    void Update() {
        transform.position = new Vector3(transform.position.x, Mathf.PingPong(Time.time, 3), transform.position.z);
		
	
    }
}